package jp.java.test1.pkg20_29.test21;

public class Main {

	public static void main(String[] args) {
		Outer outer = new Outer();
		Outer.Inner inner = outer.getInner();
		outer.Test();
		inner.hello();
		
//		outer = Outer.this;

	}

}

class Outer {
	private int test = 0;
	public String toString() {
		return "Outer";
	}
	
	public void Test() {
		test = 2;
		
	}
	public Inner getInner() {
		return new Inner();
	}
	
	public class Inner {
		public String toString() {
			return "Inner";
		}
		
		public void hello() {
			System.out.println(Outer.this.test);
		}
	}
}